package com.ronghui.cash.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单的缓存表
 * </p>
 *
 * @author wiki
 * @since 2017-12-06
 */
@TableName("orders_cache")
public class OrdersCache extends Model<OrdersCache> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 订单号
     */
	@TableField("orders_id")
	private Long ordersId;
    /**
     * 金额
     */
	private BigDecimal money;
    /**
     * 借款天数
     */
	private Integer day;
    /**
     * 银行卡名称
     */
	@TableField("bank_name")
	private String bankName;
    /**
     * 银行卡号
     */
	@TableField("bank_number")
	private String bankNumber;
    /**
     * 期数
     */
	private Integer periods;
    /**
     * 创建记录时间
     */
	@TableField("create_time")
	private String createTime;
    /**
     * 利率
     */
	@TableField("interest_rate")
	private BigDecimal interestRate;
    /**
     * 逾期利率
     */
	@TableField("overdue_rate")
	private BigDecimal overdueRate;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Long userId;
	private Integer status;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(Long ordersId) {
		this.ordersId = ordersId;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getDay() {
		return day;
	}

	public void setDay(Integer day) {
		this.day = day;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankNumber() {
		return bankNumber;
	}

	public void setBankNumber(String bankNumber) {
		this.bankNumber = bankNumber;
	}

	public Integer getPeriods() {
		return periods;
	}

	public void setPeriods(Integer periods) {
		this.periods = periods;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public BigDecimal getInterestRate() {
		return interestRate;
	}

	public void setInterestRate(BigDecimal interestRate) {
		this.interestRate = interestRate;
	}

	public BigDecimal getOverdueRate() {
		return overdueRate;
	}

	public void setOverdueRate(BigDecimal overdueRate) {
		this.overdueRate = overdueRate;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
